/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved All rights reserved.
 */
package com.kaaction.modules.ka.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.kaaction.common.persistence.Page;
import com.kaaction.common.service.CrudService;
import com.kaaction.modules.ka.entity.KaCarrier;
import com.kaaction.modules.ka.dao.KaCarrierDao;

/**
 * 快递Service
 * @author huanghaiming
 * @version 2017-06-27
 */
@Service
@Transactional(readOnly = true)
public class KaCarrierService extends CrudService<KaCarrierDao, KaCarrier> {

	public KaCarrier get(String id) {
		return super.get(id);
	}
	
	public List<KaCarrier> findList(KaCarrier kaCarrier) {
		return super.findList(kaCarrier);
	}
	
	public Page<KaCarrier> findPage(Page<KaCarrier> page, KaCarrier kaCarrier) {
		return super.findPage(page, kaCarrier);
	}
	
	@Transactional(readOnly = false)
	public void save(KaCarrier kaCarrier) {
		super.save(kaCarrier);
	}
	
	@Transactional(readOnly = false)
	public void delete(KaCarrier kaCarrier) {
		super.delete(kaCarrier);
	}

	public int getEqual(KaCarrier kaCarrier) {
		return super.dao.getEqual(kaCarrier);
	}
	
}